package com.employee.service.impl;

import com.employee.mapper.StaffScheduleMapper;
import com.employee.pojo.dto.StarffScheduleDTO;
import com.employee.pojo.vo.StaffScheduleVo;
import com.employee.service.StaffScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StaffScheduleServiceImpl implements StaffScheduleService {
    @Autowired
    private StaffScheduleMapper staffScheduleMapper;
    @Override
    public List<StaffScheduleVo> getStaffSchedule() {
        return staffScheduleMapper.getStaffSchedule();
    }

    @Override
    public void updateStaffSchedule(StarffScheduleDTO starffScheduleDTO) {
        staffScheduleMapper.updateStaffSchedule(starffScheduleDTO);
    }

    @Override
    public List<StaffScheduleVo> selectSchedule(String type, String username, String deptName) {

        return staffScheduleMapper.selectSchedule(type, username, deptName);
    }
}
